extends medecin-bar

block body
	div(class="wrapper")
	div(id="container")
		div(class="wrapper")
			div(class="content")
				h2 Informations sur le medecin
				button(id="SAVE", ng-click='saveMedecin(medecin)') Enregistrer le medecin dans la base
				br
				br
				table
					tbody
						tr
							td
								table(class="none")
									tbody
										tr
											td(colspan="2") <h2>fiche d'identitee</h2>
										tr
											td
												label Sexe:
											td
												select(ng-model='medecin.sexe', default="M")
													option(value="M") M
													option(value="F") F
										tr
											td
												label SPECIALITE:
											td
												input(ng-model="medecin.specialite", placeholder="specialite")
										tr
											td
												label NOM:
											td
												input(ng-model="medecin.nom", placeholder="nom")
										tr
											td
												label PRENOM:
											td
												input(ng-model='medecin.prenom', placeholder="prenom") PRENOM
										tr 
											td(colspan="2", style="height:2px;") <h2>contact</h2>
										tr
											td
												label ADRESSE:
											td
												input(ng-model='medecin.adresse.rue', placeholder="adresse") Adresse
										tr
											td
												label TEL1:
											td
												input(ng-model='medecin.adresse.tel[0]', placeholder="tel 1") Tel1
										tr
											td
												label TEL2:
											td
												input(ng-model='medecin.adresse.tel[1]', placeholder="tel 2") Tel2
										tr
											td
												label FAX:
											td
												input(ng-model='medecin.adresse.fax', placeholder="fax")
										tr
											td
												label CODE Postal:
											td
												input(ng-model='medecin.adresse.codepostal', placeholder="code postal") Code Postal
										tr
											td
												label VILLE:
											td
												input(ng-model='medecin.adresse.ville', placeholder="ville") Ville
										tr
											td
												label EMAIL:
											td
												input(ng-model='medecin.email', placeholder="email") email
										
							td
								h2 emails
								input(ng-model="email_filter", placeholder="recherche email")
								br
								select(ng-model="emails", ng-options="email as email for email in medecin.emails | filter:email_filter", size="20", style="min-width:200px")
							td
								h2 courriers
								input(ng-model="courrier_filter", placeholder="recherche courrier")
								br
								select(ng-model="courrier", ng-options="courrier.date as courrier.date for courrier in medecin.courriers | filter:courrier_filter", size="20", style="min-width:200px") {{courrier.date}}
